package com.enation.app.web.core.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 
 * @function 首次访问
 * @author 闯哥
 * @time 2016年10月16日 下午6:25:50
 * 
 */
@Controller
@RequestMapping("")
@SuppressWarnings("serial")
public class IndexStageController {

	@RequestMapping(value = "/index")
	public ModelAndView index() {

		return new ModelAndView("redirect:/index.html");
	}

	@RequestMapping(value = "/adm")
	public ModelAndView adm() {
		ModelAndView view = new ModelAndView();
		view.setViewName("adm/index");
		return view;
	}
}
